home *** CD-ROM | disk | FTP | other *** search
/ Dynamic HTML Construction Kit / Dynamic HTML Construction Kit.iso / source_code / dhtmlunl / dhtml.exe / CD Content / Chap26 / dun26_2.txt < prev    next >
Encoding:
Text File  |  1997-12-18  |  968 b   |  29 lines

  1. var screen_height = screen.height;
  2.  
  3. var screen_width = screen.width;
  4.  
  5.  
  6.  
  7. if (screen_height >= 768) {
  8.  
  9.     background_img = "images/horizon768.jpg";
  10.  
  11.     sun_img = "images/sun768.jpg";
  12.  
  13.     flare_img = "images/flare768.jpg";
  14.  
  15.     screen_width = 1024;
  16.  
  17.     screen_height = 768;
  18.  
  19. } else if (screen_height >= 624) {
  20.  
  21.     background_img = "images/horizon624.jpg";
  22.  
  23.     sun_img = "images/sun624.jpg";
  24.  
  25.     flare_img = "images/flare624.jpg";
  26.  
  27. } else if (screen_height >= 600) {
  28.  
  29.     background_img = "images/horizon600.jpg";
  30.  
  31.     sun_img = "images/sun600.jpg";
  32.  
  33.     flare_img = "images/flare600.jpg";
  34.  
  35. } else if (screen_height >= 480) {
  36.  
  37.     background_img = "images/horizon480.jpg";
  38.  
  39.     sun_img = "images/sun480.jpg";
  40.  
  41.     flare_img = "images/flare480.jpg";
  42.  
  43. } else {
  44.  
  45.     background_img = "images/horizon600.jpg";
  46.  
  47.     sun_img = "images/sun600.jpg";
  48.  
  49.     flare_img = "images/flare600.jpg";
  50.  
  51.     screen_width = 640;
  52.  
  53.     screen_height = 480;
  54.  
  55. }
  56.  
  57.